package com.bdqn.service.impl;

import com.bdqn.dao.smbms_billDao;
import com.bdqn.entity.bill;
import com.bdqn.entity.provider;
import com.bdqn.service.smbms_billService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class smbms_billServiceImpl implements smbms_billService {
    @Autowired
    @Qualifier("smbms_billDao")
    private smbms_billDao bill;

    public List<bill> getbillByparam(Map map) {
        return bill.getbillByparam(map);
    }

    @Override
    public int getAllCount(Map map) {
        System.out.println("serciee===================================="+bill.getAllCount(map));
        return bill.getAllCount(map);
    }

    public List<bill> getbillByductName2(String ductName) {
        return bill.getbillByductName2(ductName);
    }

    public List<provider> getbillByprovierId(Integer id) {
        return bill.getbillByprovierId(id);
    }

    public List<provider> getbillByprovierId2(Integer id) {
        return bill.getbillByprovierId2(id);
    }

    @Override
    public int updBill(bill bi) {
        return bill.updBill(bi);
    }

    @Override
    public int delbill(Integer billid) {
        return bill.delbill(billid);
    }

    @Override
    public int addBill(bill bi) {
        System.err.println(bi);
        return bill.addBill(bi);
    }

    @Override
    public bill fingBillByid(Integer id) {
        return bill.fingBillByid(id);
    }
}
